package com.example.my_music_palyer.mapper;

import com.example.my_music_palyer.model.Music;
import com.example.my_music_palyer.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Mapper
public interface UserMapper {
     User login(User user);

    User selectByUserName(String username);

    @Insert("insert into user(username, password) values(#{username},#{password});")
    int registerUser(User user);

}
